package com.yanqu.road.server.cmd.mogulbirthday;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.bossbirthday.MogulBirthdayProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.mogulbirthday.MogulBirthdayMgr;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_MOGUL_BIRTHDAY_POSTER_GET_REWARD_STAT_FROM_CROSS, desc = "生辰祝福收礼(统计数量)")
public class MogulBirthdayPosterGetNumStatFromCrossCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {

        MogulBirthdayProto.MogulBirthdayPosterGetNumSync sync = MogulBirthdayProto.MogulBirthdayPosterGetNumSync.parseFrom(packet.getBytes());

        MogulBirthdayMgr.statPosterGet(sync.getUserId(), sync.getToday());
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
